import {  Table, Button } from 'antd';
import "./index.scss"

const EquipmentManager = () => {
  const columns = [
    {
      title: '设备ID',
      dataIndex: 'id',
      key: 'id',
    },
    {
      title: '设备性能/GHZ',
      dataIndex: 'performance',
      key: 'performance',
    },
    {
      title: '设备任务队列大小',
      dataIndex: 'missionSize',
      key: 'missionSize',
    },
    {
      title: '设备卸载策略',
      dataIndex: 'unload',
      key: 'unload',
    },
    {
      title: '注册时间',
      dataIndex: 'loginTime',
      key: 'loginTime',
    },
    {
      title: "操作",
      key: "",
      render: (_, __, index) => {
        return (
          <div className='actionBar'>
            <Button type="primary">设置</Button>
            <Button type="primary">移除</Button>
          </div>
        )
      }
    }
  ];
  const data = [
    {
      id: '1',
      performance: "3.00",
      missionSize: 10,
      unload: "智能卸载",
      loginTime: "2023-11-10"
    },
  ];
  return (
    <>
      <Table columns={columns} dataSource={data} />
    </>
  )
}

export default EquipmentManager;